package com.tjjingpan.playvideotest

//String类的扩展函数，加上infix关键字后，beginWith()函数变成了一个infix函数
infix fun String.beginWith(prefix:String) = startsWith(prefix)

//集合接口添加扩展函数
infix fun <T> Collection<T>.has(element: T) = contains(element)

infix fun <A,B> A.with(that:B):Pair<A,B> = Pair(this,that)
